/**
 * 用户表
 */

const seq = require('../seq')
const { STRING, DECIMAL, INTEGER } = require('../types')//sequelize的数据类型

const users = seq.define('users', {
    id: {
        type: INTEGER,
        primaryKey: true,
        allowNull: false,
        autoIncrement: true
    },
    mobile: {
        type: STRING,
        comment: '电话'
    },
    area:{
        type: STRING,
        comment: '用户来自哪里'
    },
    openid:{
        type: STRING,
        comment: '微信小程序的用户openid'
    }
})

module.exports = users

